package com.ybkj.o2o.zhuanxian.entity;

import java.io.Serializable;
import java.util.Date;

public class OrderRefuse extends Base implements Serializable {

  private Long orderId;

  private String orderNo;

  private Long passengerId;

  private String passengerName;

  private Long employId;

  private String employName;

  private String memo;

  private String appKey;

  private String passengerPhone;

  private String employPhone;

  private Long companyId;

  private String companyName;

  private static final long serialVersionUID = 1L;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getOrderId() {
    return orderId;
  }

  public void setOrderId(Long orderId) {
    this.orderId = orderId;
  }

  public String getOrderNo() {
    return orderNo;
  }

  public void setOrderNo(String orderNo) {
    this.orderNo = orderNo == null ? null : orderNo.trim();
  }

  public Long getPassengerId() {
    return passengerId;
  }

  public void setPassengerId(Long passengerId) {
    this.passengerId = passengerId;
  }

  public String getPassengerName() {
    return passengerName;
  }

  public void setPassengerName(String passengerName) {
    this.passengerName = passengerName == null ? null : passengerName.trim();
  }

  public Long getEmployId() {
    return employId;
  }

  public void setEmployId(Long employId) {
    this.employId = employId;
  }

  public String getEmployName() {
    return employName;
  }

  public void setEmployName(String employName) {
    this.employName = employName == null ? null : employName.trim();
  }

  public String getMemo() {
    return memo;
  }

  public void setMemo(String memo) {
    this.memo = memo == null ? null : memo.trim();
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }

  public String getPassengerPhone() {
    return passengerPhone;
  }

  public void setPassengerPhone(String passengerPhone) {
    this.passengerPhone = passengerPhone == null ? null : passengerPhone.trim();
  }

  public String getEmployPhone() {
    return employPhone;
  }

  public void setEmployPhone(String employPhone) {
    this.employPhone = employPhone == null ? null : employPhone.trim();
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName == null ? null : companyName.trim();
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    OrderRefuse other = (OrderRefuse) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(
            other.getOrderId()))
        && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(
            other.getOrderNo()))
        && (this.getPassengerId() == null ? other.getPassengerId() == null : this.getPassengerId()
            .equals(other.getPassengerId()))
        && (this.getPassengerName() == null ? other.getPassengerName() == null : this
            .getPassengerName().equals(other.getPassengerName()))
        && (this.getEmployId() == null ? other.getEmployId() == null : this.getEmployId().equals(
            other.getEmployId()))
        && (this.getEmployName() == null ? other.getEmployName() == null : this.getEmployName()
            .equals(other.getEmployName()))
        && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(
            other.getMemo()))
        && (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(
            other.getCreated()))
        && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(
            other.getUpdated()))
        && (this.getAppKey() == null ? other.getAppKey() == null : this.getAppKey().equals(
            other.getAppKey()))
        && (this.getPassengerPhone() == null ? other.getPassengerPhone() == null : this
            .getPassengerPhone().equals(other.getPassengerPhone()))
        && (this.getEmployPhone() == null ? other.getEmployPhone() == null : this.getEmployPhone()
            .equals(other.getEmployPhone()))
        && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId()
            .equals(other.getCompanyId()))
        && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName()
            .equals(other.getCompanyName()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
    result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
    result = prime * result + ((getPassengerId() == null) ? 0 : getPassengerId().hashCode());
    result = prime * result + ((getPassengerName() == null) ? 0 : getPassengerName().hashCode());
    result = prime * result + ((getEmployId() == null) ? 0 : getEmployId().hashCode());
    result = prime * result + ((getEmployName() == null) ? 0 : getEmployName().hashCode());
    result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
    result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
    result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
    result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
    result = prime * result + ((getPassengerPhone() == null) ? 0 : getPassengerPhone().hashCode());
    result = prime * result + ((getEmployPhone() == null) ? 0 : getEmployPhone().hashCode());
    result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
    result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
    return result;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", orderId=").append(orderId);
    sb.append(", orderNo=").append(orderNo);
    sb.append(", passengerId=").append(passengerId);
    sb.append(", passengerName=").append(passengerName);
    sb.append(", employId=").append(employId);
    sb.append(", employName=").append(employName);
    sb.append(", memo=").append(memo);
    sb.append(", created=").append(created);
    sb.append(", updated=").append(updated);
    sb.append(", appKey=").append(appKey);
    sb.append(", passengerPhone=").append(passengerPhone);
    sb.append(", employPhone=").append(employPhone);
    sb.append(", companyId=").append(companyId);
    sb.append(", companyName=").append(companyName);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }
}
